package com.cn.jinl.api;

import com.cn.jinl.domain.Violation;
import com.cn.jinl.utils.QueryForm;

import java.util.List;
import java.util.Map;

/**
 * Created On : 2024/1/8.
 * <p>
 * Author : Huiyan
 * <p>
 * Description: IViolationService
 */
public interface IViolationService {
    List<Violation> getPendingApprovalList(QueryForm queryForm) throws Exception;

    List<Violation> getApprovedList(QueryForm queryForm) throws Exception;

    String addViolation(Violation violation) throws Exception;

    String updateViolation(Violation violation) throws Exception;

    String deleteViolation(QueryForm queryForm) throws Exception;

    String updateFdStatus(Violation violation) throws Exception;

    int getViolationApproveCount() throws Exception;

    Map<String, Object> countViolationToday() throws Exception;

    List<Violation> currentFiveViolation() throws Exception;

    List<Violation> getApprovedRecentList(QueryForm queryForm) throws Exception;
}
